package main

import (
	"BingWallpaper/config"
	"BingWallpaper/file"
	"BingWallpaper/getimg"
	"fmt"
)

var dir string

func main() {
	dir = config.GetPicPath()
	file.CheckDir(dir)
	i := 0
	for {
		if i <= config.GetMaxIdx() {
			idx := fmt.Sprintf("%d", i)
			getimg.DownLoadImg(idx, dir)
		} else {
			break
		}
		i++
	}
}
